﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;


namespace BCGM.MedicalWisdom.Model.BCGM_PatientModel
{
    ///<summary>
    ///患者表
    ///</summary>
    [SugarTable("patient", "WMBLOG_MYSQL")]
    public class patient
    {
        public patient()
        {
        }
        /// <summary>
        /// Desc:患者编号
        /// Default:
        /// Nullable:False
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public int PatientId { get; set; }
        /// <summary>
        /// Desc:头像
        /// Default:
        /// Nullable:True
        /// </summary>
        public string Avatar { get; set; }
        /// <summary>
        /// Desc:患者账号
        /// Default:
        /// Nullable:False
        /// </summary>
        public string UserId { get; set; }
        /// <summary>
        /// Desc:患者密码
        /// Default:
        /// Nullable:False
        /// </summary>
        public string UserPwd { get; set; }
        /// <summary>
        /// Desc:患者姓名
        /// Default:
        /// Nullable:False
        /// </summary>
        public string Pname { get; set; }
        /// <summary>
        /// Desc:年龄
        /// Default:
        /// Nullable:True
        /// </summary>
        public int Age { get; set; }
        /// <summary>
        /// Desc:性别
        /// Default:
        /// Nullable:True
        /// </summary>
        public string Sex { get; set; }
        /// <summary>
        /// Desc:出生日期
        /// Default:
        /// Nullable:True
        /// </summary>
        public string BirthDate { get; set; }
        /// <summary>
        /// Desc:手机号
        /// Default:
        /// Nullable:True
        /// </summary>
        public string Phone { get; set; }
        /// <summary>
        /// Desc:身份证
        /// Default:
        /// Nullable:True
        /// </summary>
        public string IdCard { get; set; }
        /// <summary>
        /// Desc:身高
        /// Default:
        /// Nullable:True
        /// </summary>
        public string Height { get; set; }
        /// <summary>
        /// Desc:体重
        /// Default:
        /// Nullable:True
        /// </summary>
        public string Weight { get; set; }
        /// <summary>
        /// Desc:婚姻状况
        /// Default:
        /// Nullable:True
        /// </summary>
        public string MaritalStatus { get; set; }
        /// <summary>
        /// Desc:生育状况
        /// Default:
        /// Nullable:True
        /// </summary>
        public string FertilityStatus { get; set; }
        /// <summary>
        /// Desc:肾功能
        /// Default:
        /// Nullable:True
        /// </summary>
        public string RenalFunction { get; set; }
        /// <summary>
        /// Desc:疾病史
        /// Default:
        /// Nullable:True
        /// </summary>
        public string DiseasesHistory { get; set; }
        /// <summary>
        /// Desc:饮酒习惯
        /// Default:
        /// Nullable:True
        /// </summary>
        public string AlcoholHabit { get; set; }
        /// <summary>
        /// Desc:肝功能
        /// Default:
        /// Nullable:True
        /// </summary>
        public string LiverFunction { get; set; }
        /// <summary>
        /// Desc:是否删除
        /// Default:
        /// Nullable:False
        /// </summary>
        public bool IsDeleted { get; set; }
        /// <summary>
        /// Desc:创建人
        /// Default:
        /// Nullable:False
        /// </summary>
        public string CREATEDBY { get; set; }
        /// <summary>
        /// Desc:创建时间
        /// Default:
        /// Nullable:False
        /// </summary>
        public DateTime CREATEDTIME { get; set; }
        /// <summary>
        /// Desc:更新人
        /// Default:
        /// Nullable:True
        /// </summary>
        public string UPDATEDBY { get; set; }
        /// <summary>
        /// Desc:更新时间
        /// Default:
        /// Nullable:True
        /// </summary>
        public DateTime? UPDATEDTIME { get; set; }
    }
}